<!-- File: app/views/m_user/edit.ctp -->
<?php
/**** Message ****/
echo $this->Session->flash();
?>
	<?php echo $this->Form->create('MUser',array('onsubmit'=>'return confirm("Are you sure to add this user?");')); ?>
	<table class="table_multi_fields table mt40 noborder">
  		<tr>
  			<td class="text-l w150 noborder-t vertical-align">User ID</td>
  			<td class="text-l noborder-t">
  				<?php echo $this->Form->input('MUser.user_id',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'user_id','class'=>'form-control top noradius','placeholder'=>'Ex: suc001','autofocus'=>'autofocus',));?>
  			</td>
  		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Username</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.user_name',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'user_name','class'=>'form-control top noradius','placeholder'=>'Ex: tommy, 後藤'));?>
			</td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Username Kata</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.user_name_kata',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'user_name_kata','class'=>'form-control top noradius','placeholder'=>'Ex: トミー'));?>
			</td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Email address</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.email_address',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'email_address','class'=>'form-control top noradius','placeholder'=>'Ex: name@domain.co.jp'));?>
			</td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Passwords</td>
			<td class="text-l noborder-t">
				<?php echo $this->Html->link('Change <i class="fa fa-pencil-square-o fa-1x"></i>',array('controller' => 'm_users', 'action' => 'edit_pass',$this->data['MUser']['id']),array('escape' => FALSE,'class'=>'nodecor'));?>
			</td>
		</tr>
		<tr>
			<?php echo $this->Form->input('MUser.id',array('type'=>'hidden'));?>
			<?php echo $this->Form->input('MUser.update_time',array('type'=>'hidden','value'=>date('Y-m-d H:i:s')));?>
			<?php echo $this->Form->input('MUser.updator', array('type' => 'hidden','value'=>$Usersuser_name)); ?>
		<td class="text-l w30 noborder-t"></td></tr>
		
  	</table> 
	
	<div class="clearfix"></div>
	<div class="text-c mt30 display-in">
		<?php echo $this->Form->submit('Edit',array('class'=>'btn-lg noradius btn-nocolor nodecor','name' => 'create'));?>
		<?php echo $this->Html->link('Cancel',array('controller' => 'm_users', 'action' => 'index'),array('escape' => FALSE,'class'=>'nodecor'));?>
	</div>





